﻿<%@  Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Users/MasterPage.master" Inherits="Users_AddMoney" Codebehind="AddMoney.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script src="../Include/JS/Common.js" type="text/javascript"></script>
 <script type="text/javascript" src="../Include/Js/PopupCalendar.js"></script>
 <script type="text/javascript" src="../Include/JS/calendar_addmoney.js"></script>
<script language="javascript" type="text/javascript">
    function ShowBank(obj)
    {
      var bankList=document.getElementById("bankList");
      var bankChange=document.getElementById("bankChange");
       var web=document.getElementById("Web");
      var Bank=document.getElementById("Bank");  
      
      if(obj.id=="Web")
      {
         web.className="chargenow" ;
         Bank.className="";
         bankList.style.display="block";
         bankChange.style.display="none";
      } 
     if(obj.id=="Bank")
     {
        web.className="" ;
         Bank.className="chargenow";
        bankList.style.display="none";
         bankChange.style.display="block";
     }  
    }
function ChooseBank(obj)
{
    var payCode=document.getElementById("ctl00_ContentPlaceHolder1_hdPayCode");
    var bankName=document.getElementById("ctl00_ContentPlaceHolder1_hdBankName");
    var account=document.getElementById("ctl00_ContentPlaceHolder1_hdAccount");
    var span=document.getElementById("deal");
    var haveDeal=document.getElementById("ctl00_ContentPlaceHolder1_hdHaveDeal");
    payCode.value=obj.value;
    bankName.value=document.getElementById(obj.value).value;
    account.value=document.getElementById(obj.value).name;
    if(obj.title=="1")
    {
        span.style.display="";
        haveDeal.value="1";
    }
    else
    {
        span.style.display="none";
        haveDeal.value="0";
    }
}
function CheckFloat(fCtrlName, fAlertStr)
{
    var reg="^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$";
    var fData=document.getElementById(fCtrlName).value;
    if(!fData.match(reg))
    {
        document.getElementById(fCtrlName).value="";
        document.getElementById(fCtrlName).focus();
        alert(fAlertStr);
    }
}
function ChoosePayMethod(obj)
{
    var payCode=document.getElementById("ctl00_ContentPlaceHolder1_Hid_Type");
     payCode.value=obj.value;
}
function CheckDigit(ctl,str)
{
    var reg="^[0-9]*$";
    var value=ctl.value;
    if(!value.match(reg))
    {   
        ctl.value="";
        ctl.focus();
        alert(str);
    }
}
</script>
    <div class="chargeinfor">
        <h3><a href="javascript:void(0);" onclick="ShowBank(this)"  id="Bank">银行转帐</a><a class="chargenow" href="javascript:void(0);" onclick="ShowBank(this)" id="Web">网上支付</a></h3>
        <div class="chargebox" style="display:none;" id="bankList">
			 <table width="350" bgcolor="#dddcdc" border="0" cellspacing="1" cellpadding="0">
                 <tr class="charge_tr">
                   <td class="charge_td">充值会员账号</td>
                   <td class="charge_td"><asp:Label ID="lblUserCode" runat="server"></asp:Label></td>
                 </tr>
                 <tr class="charge_tr">
                   <td class="charge_td">充值金额</td>
                   <td class="charge_td"><asp:TextBox ID="moneytext" style="BORDER-RIGHT: #adadad 1px solid; BORDER-TOP: #adadad 1px solid; PADDING-LEFT: 3px; BORDER-LEFT: #adadad 1px solid; WIDTH: 44px; PADDING-TOP: 1px; BORDER-BOTTOM: #adadad 1px solid; HEIGHT: 17px; BACKGROUND-COLOR: #f5f5f5" runat="server" onkeyup="CheckFloat('ctl00_ContentPlaceHolder1_moneytext','充值金额必须是正整数或正浮点数')"></asp:TextBox>￥(最低充值额度：￥<%=Limit %>)  </td>
                 </tr>
             </table>
			 <div class="chargeinfor2">充值提醒:</div>
			 <div class="chargeinfor3">支付方式:</div>
			 <div class="chargeinfor4">
		       <asp:HiddenField ID="Hid_Type" runat="server" />
		       <div>
                     <%=PayMethod%>
               </div>
               <div align="center">
                    <a id="A1"  runat="server"  href="Javascript:">
                       <asp:LinkButton ID="LinkButton1"  OnClick="Button1_Click" runat="server">充  值</asp:LinkButton>
                    </a> 
               </div>
				 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                    </tr> 
                    <tr>
                        <td colspan="1"></td>
                        <td colspan="9">
                             <DIV class="c_gouwu_button_cz"  >
                                <UL >
                                    <LI >
                                    </LI>
                                </UL>
                            </DIV>
                         </td>
                     </tr>
                </table> 
                   
		   </div>
		  </div>
	     <div class="chargebox" id="bankChange">
            <div class="chargeinfor6">全国各地区均可采用此种支付方式，汇款账户信息如下：</div>
			<div class="chargeinfor6">
		       <asp:HiddenField ID="hdPayCode" runat="server" />
		       <asp:HiddenField ID="hdBankName" runat="server" />
		       <asp:HiddenField ID="hdAccount" runat="server" />
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                
                <tr>
                 <td colspan="2"></td>
                </tr>
                <tr>
                 <td colspan="2"><%=Bank %></td>
                </tr>
              </table>
			</div>
			<br />
			<div style="border:#dcdcdc 1px solid;width:400px">
			转账日期：<asp:TextBox ID="txtDate" runat="server"  OnClick="setday(this)"></asp:TextBox>*<br />
			<span id="deal">
			交易号：&nbsp;&nbsp;&nbsp;<asp:TextBox ID="dealNo" onkeyup="CheckDigit(this,'交易号只能是数字')" runat="server"></asp:TextBox>*
			<asp:HiddenField ID="hdHaveDeal" runat="server" />
			<br />
			</span>
	        转账金额：<asp:TextBox ID="JE" runat="server" onkeyup="CheckFloat('ctl00_ContentPlaceHolder1_JE','转账金额必须是正整数或正浮点数')" ></asp:TextBox>￥*(最低充值额度：￥<%=Limit %>)<br />
	        用途：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	        <asp:DropDownList ID="drpType" runat="server">
	            <asp:ListItem Text="充值" Value="000"></asp:ListItem>
	            <asp:ListItem Text="保证金" Value="001"></asp:ListItem>
	        </asp:DropDownList>
	        <div align="center"><asp:Button ID="btnAdd" runat="server" Text="转账" OnClick="btnAdd_Click"/></div>
			</div>
			<div class="chargeinfor8">
			  <ul>
			    <li>特别提示：</li><li>*&nbsp;&nbsp;如通过银行柜台汇款需持本人身份证到离您最近的银行办理异地（或同城）汇款业务；</li><li>*&nbsp;&nbsp;可持银行卡通过自助取款机进行转账操作，如果您的银行账号已开通网上汇款功能，也可以直接在网上进  &nbsp;&nbsp;&nbsp;&nbsp;行操作，具体操作方法请参照银行官方网站的操作说明； </li>
                <li>*&nbsp;&nbsp;跨行汇款的到款时间会比同行汇款慢，所以不推荐跨行汇款。</li><li>*&nbsp;&nbsp;当您通过银行汇完款后，请与我们的客服人员联系，说明您的汇款金额、汇款银行、汇款时间等，以便我
  &nbsp;&nbsp;&nbsp;&nbsp;们在第一时间处理您的订单，及时为您配送商品。</li></ul>
			</div>
		  </div>	  
    </div>
</asp:Content>
